# Contributor: Sam Nystrom <sam@samnystrom.dev>
# Maintainer: Sam Nystrom <sam@samnystrom.dev>
pkgname=seaward
pkgver=1.0.2
pkgrel=0
pkgdesc="Crawler which searches for links or a specified word in a website"
url="https://github.com/M3nny/seaward"
# s390x: nix crate
arch="all !s390x"
license="MIT"
makedepends="cargo cargo-auditable openssl-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/M3nny/seaward/archive/refs/tags/$pkgver.tar.gz"
options="!check" # no tests

prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --frozen --release
}

package() {
	install -Dm755 target/release/seaward -t "$pkgdir"/usr/bin/
}

sha512sums="
85129b54b223acfd798793d7cd90f5a65a72e162c822b7549e95e44f5b0d3b3e6e0eaabca8672f45929534df71a54139fb69f1e06e767d502b2b5ba049f56687  seaward-1.0.2.tar.gz
"
